%p
  - fileList = Dir.entries('projects/' + @path).select do |file|
    - not (file.include? 'svn' or file == '.')
  - fileList.sort!

  - urlList = fileList.map do |file|
    - if file == '..'
      - fl = request.path_info.split '/'
      - fl[0, fl.length-1].join '/'
    - else
      - request.path_info + '/' + file

  - fileList.zip(urlList).each do |file_and_url|
    %a{:href => file_and_url[1]}= file_and_url[0]
    %br
